package com.ruoyi.info.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 产品类型对象 product_type
 * 
 * @author wangshi
 * @date 2023-06-10
 */
public class ProductType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 产品类型名称 */
    @Excel(name = "产品类型名称")
    private String name;

    /** 产品类型编码 */
    @Excel(name = "产品类型编码")
    private String code;

    /** 父产品类型编码 */
    @Excel(name = "父产品类型编码")
    private String pcode;

    /** 层级的中文名 */
    @Excel(name = "层级的中文名")
    private String levelName;

    /** 层级的编码 */
    @Excel(name = "层级的编码")
    private String levelCode;

    /** 是否最后一级 */
    @Excel(name = "是否最后一级")
    private Long last;

    /** 禁用 */
    @Excel(name = "禁用")
    private Long disabled;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPcode(String pcode) 
    {
        this.pcode = pcode;
    }

    public String getPcode() 
    {
        return pcode;
    }
    public void setLevelName(String levelName) 
    {
        this.levelName = levelName;
    }

    public String getLevelName() 
    {
        return levelName;
    }
    public void setLevelCode(String levelCode) 
    {
        this.levelCode = levelCode;
    }

    public String getLevelCode() 
    {
        return levelCode;
    }
    public void setLast(Long last) 
    {
        this.last = last;
    }

    public Long getLast() 
    {
        return last;
    }
    public void setDisabled(Long disabled) 
    {
        this.disabled = disabled;
    }

    public Long getDisabled() 
    {
        return disabled;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("pcode", getPcode())
            .append("levelName", getLevelName())
            .append("levelCode", getLevelCode())
            .append("last", getLast())
            .append("disabled", getDisabled())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
